﻿using System;
using System.Collections.Generic;
using System.Windows.Data;

namespace SLNavigationFrameworkEx
{
    public class UriPatternConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return UriHelper.Convert2UriByUriPattern(new List<object>() { value }, System.Convert.ToString(parameter), null);
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return null;
        }
    }
}
